{% extends "base.html" %}

{% block title %}Set get day{% endblock %}

{% block head_css %}
<link href="/static/css/bootstrap-datepicker.css" rel="stylesheet" />
{% endblock %}

{% block head_script %}
<script type="text/javascript" src="/static/js/bootstrap-datepicker.js"></script>
{% endblock %}

{% block main_content %}
<div class="row">
    <div class="span6 offset3">
        <h2>Reservation Step 2: Set your get day</h2>
        <hr />
        {% if message %}
        <div class="alert">
            <a data-dismiss="alert" class="close">&#x00D7;</a>
            <strong>Attention!</strong>
            {{ message }}
        </div>
        {% endif %}
        <form action="/shop/set-getday" class="well form-inline" method="post">
            <input type="text" data-datepicker="datepicker" placeholder="yyyy-mm-dd" name="getday" value="{{ default_day|date:"Y-m-d" }}" />
            <input type="hidden" name="pk" value="{{ pk }}" />
            <input type="submit" class="btn btn-primary" value="Set" name="" />
            <a href="/shop/cart?dest=reservation" class="btn">Skip</a>
        </form>
    </div>
</div>
{% endblock %}
